package com.kdx.cloud.common.utils;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author litianshen
 * @date 2017年2月15日 上午10:14:09
 * @Description:
 */
public class ListUtil {
	
	public static Map<String, Map<String, Object>> convertList2Map(List<Map<String, Object>> list, String mapKey) {
		Map<String, Map<String, Object>> mappedMovies = new HashMap<String, Map<String, Object>>();
		for (Map<String, Object> l : list) {
			mappedMovies.put((String) l.get(mapKey), l);
		}
		return mappedMovies;
	}
}
